package com.imooc.distributedemo.resume.pattern.strategy;

public class StrategyPatternDemo {
    public static void main(String[] args) {
        StrategyContext contextAdd = new StrategyContext(new OperationAdd());
        contextAdd.executeStrategy(12,3);

        StrategyContext contextSubstract = new StrategyContext(new OperationSubstract());
        contextSubstract.executeStrategy(12,3);
    }
}
